package com.gxan.renshidao;

import com.gxan.pojo.Archives;

import java.sql.SQLException;
import java.util.List;

public interface ArchivesDao {
    /**
     * 查询所有Archives信息
     */
    List<Archives> findAllArchives(Integer offset, Integer rows) throws SQLException;
    /**
     * 查询的数据条数
     */
    Integer countArchives() throws SQLException;
    /**
     * 添加Archives
     */
    Integer addArcives(Archives archives) throws SQLException;

    /**
     * 搜索列表信息
     */
    List<Archives> searchArchives(String archives_id, String audit_status, String status, String s_date, String t_date, Integer offset, Integer rows) throws SQLException;

    /**
     *条件查询
     */
    Integer countArchivesByCondition(String archives_id, String audit_status, String status, String s_date, String t_date) throws SQLException;
    /**
     * 删除Archives信息
     */
    Integer delArchives(Integer archives_id) throws SQLException;
    /**
     * 更新Archives信息
     */
    Integer updateArchives(Archives archives) throws SQLException;
}
